package cn.ydxiaoshaui.aip.nlp.bean;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.io.Serializable;

/**
 * @Description 地址识别JavaBean
 * @author 小帅丶
 * @className AddressDetect
 * @Date 2019/10/10
 **/
public class AddressDetect implements Serializable {

    private static final long serialVersionUID = 1L;
    /**请求唯一标识码*/
    private long log_id;
    /**原始输入的文本内容*/
    private String text;
    /**省（直辖市/自治区）*/
    private String province;
    /**省国标code*/
    private String province_code;
    /**市*/
    private String city;
    /**城市国标code*/
    private String city_code;
    /**区（县）*/
    private String county;
    /**区县国标code*/
    private String county_code;
    /**街道（乡/镇）*/
    private String town;
    /**街道/乡镇国标code*/
    private String town_code;
    /**姓名，如果出现多个则按顺序输出*/
    private String person;
    /**详细地址*/
    private String detail;
    /**电话号码，如果出现多个则按顺序输出*/
    private String phonenum;

    public long getLog_id() {
        return log_id;
    }

    public void setLog_id(long log_id) {
        this.log_id = log_id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getProvince_code() {
        return province_code;
    }

    public void setProvince_code(String province_code) {
        this.province_code = province_code;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity_code() {
        return city_code;
    }

    public void setCity_code(String city_code) {
        this.city_code = city_code;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getCounty_code() {
        return county_code;
    }

    public void setCounty_code(String county_code) {
        this.county_code = county_code;
    }

    public String getTown() {
        return town;
    }

    public void setTown(String town) {
        this.town = town;
    }

    public String getTown_code() {
        return town_code;
    }

    public void setTown_code(String town_code) {
        this.town_code = town_code;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }
    @Override
    public String toString() {
        return JSON.toJSONString(this, new SerializerFeature[] {
                SerializerFeature.WriteMapNullValue,
                SerializerFeature.WriteNullListAsEmpty,
                SerializerFeature.WriteNullStringAsEmpty,
                SerializerFeature.WriteNullNumberAsZero,
                SerializerFeature.WriteNullBooleanAsFalse,
                SerializerFeature.UseISO8601DateFormat });
    }
}
